package com.spic.business.detector.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.spic.business.preset_point.domain.TreeEntity;
import com.spic.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 海康烟感报警对象 hk_smoke_detector
 *
 * @author spic
 * @date 2022-04-15
 */
public class HkSmokeDetector extends TreeEntity
{
    private static final long serialVersionUID = 1L;

    /** 摄像头资源id */
    private String indexCode;

    /** 摄像头父级id */
    private String regionindexCode;

    /** 摄像头名名称 */
    @Excel(name = "摄像头名名称")
    private String name;

    /** 通道 */
    @Excel(name = "通道")
    private Long chanNum;

    /** 用户id */
    private Long userId;

    /** 防火负责人 */
    @Excel(name = "防火负责人")
    private String userName;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date updateTime;

    private Long ondutyPerson; //值班负责人

    private String telphone;  //联系方式

    private String accesscontrol; //门禁点

    private String ondutyPersonName; //值班负责人姓名

    private String accesscontrolName; //门禁点名称

    public String getOndutyPersonName()
    {
        return ondutyPersonName;
    }

    public void setOndutyPersonName(String ondutyPersonName)
    {
        this.ondutyPersonName = ondutyPersonName;
    }

    public String getAccesscontrolName()
    {
        return accesscontrolName;
    }

    public void setAccesscontrolName(String accesscontrolName)
    {
        this.accesscontrolName = accesscontrolName;
    }

    public Long getOndutyPerson()
    {
        return ondutyPerson;
    }

    public void setOndutyPerson(Long ondutyPerson)
    {
        this.ondutyPerson = ondutyPerson;
    }

    public String getTelphone()
    {
        return telphone;
    }

    public void setTelphone(String telphone)
    {
        this.telphone = telphone;
    }

    public String getAccesscontrol()
    {
        return accesscontrol;
    }

    public void setAccesscontrol(String accesscontrol)
    {
        this.accesscontrol = accesscontrol;
    }

    public Date getCreateTime()
    {
        return createTime;
    }

    public void setCreateTime(Date createTime)
    {
        this.createTime = createTime;
    }

    public Date getUpdateTime()
    {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime)
    {
        this.updateTime = updateTime;
    }

    public void setIndexCode(String indexCode)
    {
        this.indexCode = indexCode;
    }

    public String getIndexCode()
    {
        return indexCode;
    }
    public void setRegionindexCode(String regionindexCode)
    {
        this.regionindexCode = regionindexCode;
    }

    public String getRegionindexCode()
    {
        return regionindexCode;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setChanNum(Long chanNum)
    {
        this.chanNum = chanNum;
    }

    public Long getChanNum()
    {
        return chanNum;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUserName(String userName)
    {
        this.userName = userName;
    }

    public String getUserName()
    {
        return userName;
    }
    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("indexCode", getIndexCode())
            .append("regionindexCode", getRegionindexCode())
            .append("name", getName())
            .append("chanNum", getChanNum())
            .append("userId", getUserId())
            .append("userName", getUserName())
            .append("phone", getPhone())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
